package com.ioudi.digu.vo;

public class FriendShip
{
	private String id;

	private User user;
	
	private User friend;
    
    private String groupName;

    
    public User getUser()
	{
		return user;
	}

	public void setUser(User user)
	{
		this.user = user;
	}

	
	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}


	public User getFriend()
	{
		return friend;
	}

	public void setFriend(User friend)
	{
		this.friend = friend;
	}
	
	public String getGroupName()
	{
		return groupName;
	}

	public void setGroupName(String group)
	{
		this.groupName = group;
	}
	
	public boolean equals(Object user)
	{
		if(user instanceof FriendShip)
		{
			return ((FriendShip)user).getId().equals(this.id);
		}
		return false;
	}
	
	public int hashCode()
	{
		return this.id.hashCode();
	}
}
